
package jogs.core;

import jogs.games.Game;
import java.util.Collection; 

/**
 * A client handler for the game running.
 *
 * In developing: StandAloneGameServer is a GameServer, StandAlongTCPServer is one of these
 * In production: TableServer is a GameServer, TSClientHandler is one of these
 */
public interface GameServer
{
	public Game getGame(String gameName);
	public Game createGame(String gameType, String tableName, int max, Player player);

	public void addPlayer(String playerName, Player player);
	public void joinGame(String game, Player p);
	public void leaveGame(String game, Player p);
	
  public void statusChange(String tableName);
  
  public void exit(); 

  public Collection<Player> getPlayers(); 

}

